package org.hishenframework.tool.codegenerate.method;

import java.util.List;

import org.hishenframework.tool.EntityUtils;

import freemarker.template.SimpleScalar;
import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;

/**
 * 为字符串增加${}
 * @author ZhangDi
 *
 */
public class ElTemplateMethodModelEx implements TemplateMethodModelEx {

	public Object exec(List arguments) throws TemplateModelException {
		return "${" + ( (SimpleScalar)arguments.get(0) ).getAsString() + "}";
	}

}
